{include file="default/base/header" /}

<link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
<script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
<div class='page'>
    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <thead>
        <tr>
            <th colspan="6">基本信息</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th style="width: 68px;" >商品名称：</th>
            <td style="width: 300px;"  >{$goods_info.goods_name}</td>
            <th style="width: 68px;"  >商品分类：</th>
            <td>{$goods_info.gc_name}</td>
            <th style="width: 68px;"  >商品品牌：</th>
            <td>{$goods_info.brand_name}</td>
        </tr>
        <?php if(!empty($goods_info['goods_stateremark'])&&$goods_info['goods_status']==2){  ?>
        <thead>
        <tr>
            <th colspan="6">审核意见</th>
        </tr>
        </thead>
        <tr>
            <th>未通过原因：</th>
            <td>{$goods_info.goods_stateremark}</td>
        </tr>
        <?php }else{ ?>
        <?php  }?>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <thead>
        <tr>
            <th colspan="8">商品名称&规格值信息及价格：</th>
        </tr>
        </thead>
        <tr>
            <td style="width:400px;">商品名称&规格值</td>
            {if $member_type == 1}
            <td><label>平台分享价</label></td>
            <td><label>固定加价</label></td>
            <td><label>最终售价</label></td>
            {else /}
            <td><label>平台分享价</label></td>
            <td><label>最终售价</label></td>
            {/if}
            <td>库存</td>
            <td>库存安全值</td>
            <td>操作</td>
        </tr>
        <?php foreach($goods as $k=>$v){  ?>
        <tr>
            <td>{$v.goods_name}</td>
            {if $member_type == 1}
            <td><label><?php echo $v['g_price']; ?>元</label></td>
            <td><label><?php echo $v['markup_price']; ?>元</label></td>
            <td><label><?php echo  ($v['g_price'] + $v['markup_price']); ?>元</label></td>
            {else /}
            <td><label><?php echo $v['t_price']; ?>元</label></td>
            <td><label><?php echo $v['t_price']; ?>元</label></td>
            {/if}
            <td>{$v.goods_storage}</td>
            <td>{$v.goods_storage_alarm}</td>
            <td> <a href="{:url('Sellergoodsadd/goods_setting_info',['goods_id'=>$v.goods_id,'is_href'=>1])}" class="dssc-btn dssc-btn-green" style="margin-right: 10px;" ><p>查看详情</p></a></td>

        </tr>
        <?php  }?>
    </table>





    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <thead>
        <tr>
            <th colspan="6">基本文件信息</th>
        </tr>
        </thead>
        <tr>
            <th style='width:80px;'>轮播图视频：</th>
            <td>
                <?php if(empty($goods_info['videos'])){ ?>
                暂无视频
            <th></th>

            <?php }else{ ?>

            <video width="300" height="180" controls>
                <source src="{$http_name}/{$goods_info.videos}" type="video/mp4">
            </video>
            <th></th>
            <?php  }?>
            </td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <tr>
            <th style='width:80px;'>商品图片：</th>
            <td>
                <?php if(empty($goods_img)){ ?>
                暂无图片
            <th></th>

            <?php }else{ ?>

            {foreach name="goods_img" item="val" }
            <img src="{$http_name}/{$val.goodsimage_url}" width="120" height="120" />
            {/foreach}
            <?php  }?>
            </td>
        </tr>
        </tbody>
    </table>
</div>
